package com.hnichr.ump.build7.event;


import com.hnichr.ump.build7.service.StopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class ContextRefreshedListener {

    @Autowired
    private StopService stopService;
    @EventListener
    public void onApplicationEvent(ContextRefreshedEvent event){
        stopService.writeListQuery("");
    }
}
